<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
    <!--公共无数据提示 开始-->
    <li th:if="${#lists.isEmpty(dataMap['list'])}" id="no-data-li">
        <section class="no-data__wrap">
            <em>&nbsp;</em>
            <p>亲，快快提问吧~~~</p>
        </section>
    </li>
    <!--公共无数据提示 结束-->
    <li th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="question: ${dataMap['list']}" class="card-header">
        <a th:href="@{/mobile/qa/questionInfo?questionId={questionId}(questionId=${question['id']})}">
            <section class="pull-right">
                <span class="button button-round button-danger"> 查看详情 </span>
            </section>
        </a>
        <div class="facebook-avatar mr5"><img class="wm-img list-block-userface" th:attr="data-src=${question['user']['avatar']}" th:src="@{{path}/front/mobile/v3/img/default/default-face.jpg(path=${staticPath})}" width="42" height="42" alt=""></div>
        <div class="facebook-name c-blue fs6" th:text="${question['user']['nickname']}"></div>
        <div class="facebook-date c-bbb fs6" th:text="${#strings.substring(question['createTime'],0,16)}"></div>
        <div class="mt5 ml5 mr5">
            <div class="fs7 c-333" th:text="${question['context']}"></div>
            <div class="mt5"><strong class="c-bbb fs4" th:text="${question['isFree']==1}?${question['replyNum']}+ '人评论该问题':${question['attendNum']}+ '人围观该问题'"></strong></div>
        </div>
    </li>

    <input type="hidden" id="totalPages" th:value="${dataMap['pages']}"/>
    <input type="hidden" id="currentPage" th:value="${dataMap['pageNum']}"/>
    <script th:inline="javascript" type="text/javascript">
        var total = [[${dataMap['total']}]];
    </script>
</html>
